package ts;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.phprpc.PHPRPC_Server;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/phprpc")
public class PhprpcServer {

	
	@RequestMapping(value = "/anxindoc/coupon")
	public String run3(HttpServletRequest request, HttpServletResponse response) {
		PHPRPC_Server phprpc_server = new PHPRPC_Server();
		try {
			phprpc_server.add("couponExpiresRemind", CouponService.class);
			phprpc_server.add("couponExpires", CouponService.class);
			phprpc_server.start(request, response);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	
}
